package com.ruoyi.web.controller.workflow;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.workflow.domain.CarPackageAudit;
import com.ruoyi.workflow.service.ICarPackageAuditService;
import com.ruoyi.workflow.service.ITodoTaskService;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;

/**
 * 套餐审核Controller
 *
 * @author xiaoliu
 * @date 2022-11-17
 */
@RestController
@RequestMapping("/workflow/todo")
public class TodoTaskController extends BaseController {
    @Autowired
    private ITodoTaskService todoTaskService;

    /**
     * 查询套餐审核列表
     */
    @GetMapping("/list")
    public TableDataInfo list(CarPackageAudit carPackageAudit) {
        return todoTaskService.selectForList(carPackageAudit);
    }

}
